function to (PromiseA) {
  return PromiseA.then(res => {
    return [null, res]
  }).catch(err => {
    return [err, null]
  })
}
export default to
